/* ── VARIÁVEIS ──────────────────────────────────────────────── */
:root {
  /* Cores primárias */
  --terracota: #c85a2e;
  --terracota-escuro: #9e3f1a;
  --terracota-claro: #e07245;
  --ambar: #e8a23a;
  --ambar-claro: #f5c564;

  /* Tons de fundo */
  --creme: #fdf6ec;
  --creme-escuro: #f5e9d4;
  --creme-medio: #f0dfc0;
  --branco: #ffffff;

  /* Texto */
  --txt-escuro: #2c1a0e;
  --txt-medio: #5a3a20;
  --txt-leve: #8a6245;
  --txt-muted: #b08060;

  /* Estado / Feedback */
  --verde-adotado: #2d6a4f;
  --verde-claro: #52b788;
  --azul-acolhimento: #2563a8;
  --azul-claro: #60a5fa;
  --erro: #c0392b;

  /* Tipografia */
  --fonte-display: "Fraunces", Georgia, serif;
  --fonte-corpo: "Nunito", system-ui, sans-serif;

  /* Espacamentos */
  --s-xs: 0.5rem;
  --s-sm: 1rem;
  --s-md: 2rem;
  --s-lg: 3.5rem;
  --s-xl: 6rem;

  /* Radios */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 10px rgba(44, 26, 14, 0.08);
  --shadow-md: 0 8px 30px rgba(44, 26, 14, 0.13);
  --shadow-lg: 0 20px 60px rgba(44, 26, 14, 0.18);
  --shadow-warm: 0 8px 32px rgba(200, 90, 46, 0.2);

  /* Transições */
  --t-fast: 0.2s ease;
  --t-med: 0.35s ease;
  --t-slow: 0.55s ease;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fonte-corpo);
  font-weight: 400;
  color: var(--txt-escuro);
  background: var(--branco);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
address {
  font-style: normal;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ── ACESSIBILIDADE ─────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--ambar);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── UTILITÁRIOS ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: var(--s-xl);
}

.section--warm {
  background-color: var(--creme);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--s-lg);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a36034;
  background: rgba(200, 90, 46, 0.1);
  border: 1px solid rgba(200, 90, 46, 0.25);
  padding: 0.4em 2em;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}

.section-label.mobile {
  margin-top: 3rem;
}

.section-title {
  font-family: var(--fonte-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--txt-escuro);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: #a36034;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--txt-medio);
  line-height: 1.7;
  max-width: 520px;
  margin-inline: auto;
}

.section-footer {
  text-align: center;
  margin-top: var(--s-lg);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 236, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--creme-escuro);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t-med),
    box-shadow var(--t-med),
    background var(--t-med);
}

.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-paw {
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(200, 90, 46, 0.3));
  transition: transform var(--t-fast);
  height: 60px;
}
.logo:hover .logo-paw {
  transform: rotate(-10deg) scale(1.1);
}

.logo-text {
  font-family: var(--fonte-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--txt-escuro);
  display: flex;
  flex-direction: column;
}
.logo-text em {
  font-style: italic;
  font-weight: 300;
  color: #a36034;
}

.logo--footer .logo-text {
  color: var(--creme);
}
.logo--footer .logo-text em {
  color: var(--ambar-claro);
}
.logo--footer .logo-paw {
  filter: none;
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--txt-medio);
  padding: 0.45em 0.85em;
  border-radius: var(--r-pill);
  transition:
    color var(--t-fast),
    background var(--t-fast);
}
.nav-link:hover {
  color: var(--terracota);
  background: rgba(200, 90, 46, 0.07);
}
.nav-link--active {
  color: var(--terracota) !important;
  font-weight: 600;
}

.nav-link--cta {
  background: #a36034;
  color: var(--branco) !important;
  font-weight: 600;
  margin-left: 0.5rem;
  padding: 0.5em 1.2em;
  box-shadow: var(--shadow-warm);
}
.nav-link--cta:hover {
  background: var(--terracota-escuro);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1.5px solid var(--creme-medio);
  border-radius: var(--r-sm);
  padding: 6px;
  transition: border-color var(--t-fast);
}
.nav-toggle:hover {
  border-color: var(--terracota-claro);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--txt-escuro);
  border-radius: 2px;
  transition:
    transform var(--t-med),
    opacity var(--t-med);
}

.nav-toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle--open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════
   GALERIA
═══════════════════════════════════════════════════════════════ */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 0.85rem;
}

.galeria-item {
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: pointer;
  background: linear-gradient(135deg, var(--creme-escuro), var(--creme-medio));
  position: relative;
}

.galeria-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(44, 26, 14, 0);
  transition: background var(--t-med);
  border-radius: var(--r-md);
}
.galeria-item:hover::after {
  background: rgba(44, 26, 14, 0.18);
}

.galeria-item--tall {
  grid-row: span 2;
}
.galeria-item--wide {
  grid-column: span 1;
}

.galeria-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.galeria-item:hover .galeria-img {
  transform: scale(1.06);
}
/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.lightbox--open {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 8, 0.93);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  max-width: 90vw;
  animation: scaleIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lightbox-img {
  max-width: 75vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  display: block;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
  flex-shrink: 0;
  font-size: 1.4rem;
}
.lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 40px;
  height: 40px;
}
.lightbox-prev,
.lightbox-next {
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: #a36034;
  border-color: #a36034;
}

.lightbox-caption {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
/* ═══════════════════════════════════════════════════════════════
   RESPONSIVIDADE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-layout {
    gap: 3rem;
  }
  .hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
  }
  .sobre-grid {
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-visual {
    display: flex;
    justify-content: center;
    order: -1;
  }
  .hero-img-frame {
    max-width: 400px;
  }
  .hero-img {
    height: 410px;
  }
  .hero-img-badge {
    left: auto;
    right: -12px;
    bottom: -14px;
  }
  .hero-eyebrow,
  .hero-actions {
    justify-content: center;
  }
  .hero-desc {
    margin-inline: auto;
  }
  .hero-text {
    max-width: 620px;
    margin-inline: auto;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
  }
  .sobre-media {
    order: -1;
  }
  .media-stack {
    height: 340px;
  }
  .media-card--main {
    height: 400px;
  }
  .media-card--secondary {
    height: 190px;
  }

  .noticias-grid {
    grid-template-columns: 1fr;
  }
  .noticia-card--destaque .noticia-img-wrap {
    height: 220px;
  }

  .contato-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-img-badge {
    animation: none;
  }
  .media-float-badge {
    animation: none;
  }
}

@media (max-width: 768px) {
  :root {
    --s-xl: 4rem;
    --s-lg: 2.5rem;
  }

  .nav-primary {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--creme);
    border-bottom: 2px solid var(--creme-escuro);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .nav-primary--open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .nav-link--cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  .nav-toggle {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
  }
  .stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stat-sep {
    display: none;
  }

  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }
  .galeria-item--tall {
    grid-row: span 1;
  }
  .galeria-item--wide {
    grid-column: span 2;
  }

  .newsletter-inner {
    flex-direction: column;
  }
  .newsletter-field-group {
    flex-direction: column;
  }
  .newsletter-input {
    width: 100%;
    min-width: 0;
  }

  .equipe-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }

  .contato-form-wrap {
    padding: 1.5rem;
  }
  .lightbox-content {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    max-width: 95vw;
    max-height: 90vh;
  }

  .lightbox-img {
    max-width: 90vw;
    max-height: 65vh;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .lightbox-close {
    top: 0.25rem;
    right: 0.25rem;
  }
  .eyebrow-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--ambar);
    border-radius: 50%;
    animation: none;
  }
}

@media (max-width: 480px) {
  .galeria-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .galeria-item--wide {
    grid-column: span 1;
  }

  .equipe-grid {
    grid-template-columns: 1fr;
  }
  .ajudar-grid {
    grid-template-columns: 1fr;
  }
  .pets-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .stat-number {
    font-size: 2rem;
  }

  .noticia-card--mini {
    flex-direction: column;
  }
  .noticia-card--mini .noticia-img-wrap {
    width: 100%;
    height: 160px;
  }

  .hero-layout {
    padding-block: var(--s-lg);
  }
  .hero-img-frame {
    max-width: 300px;
  }
  .hero-img {
    height: 350px;
  }
  .hero-img-badge {
    padding: 0.7rem 1rem;
  }
  .badge-number {
    font-size: 1.6rem;
  }
  .badge-label {
    font-size: 0.62rem;
  }
  .hero-img-badge {
    animation: none;
  }
  .media-float-badge {
    animation: none;
  }
  .lightbox-img {
    max-width: 92vw;
    max-height: 55vh;
  }
  .eyebrow-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--ambar);
    border-radius: 50%;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
